def decode(str,type):
    res = ''
    if(type=='mobile'):
        for num in range(0,11):
            if(num<3):
                res=res+str[(num+1)*2]
            else:
                res = res + str[(num + 2) * 2]
    elif (type=='code'):
        for num in range(0, 6):
            if (num < 3):
                res = res + str[(num + 1) * 2]
            else:
                res = res + str[(num + 2) * 2]
    res_new=""
    for num in range(0, len(res)):
        n=ord(res[num])
        if(n<56):
            res_new=res_new+chr(n-3)
        else:
            res_new = res_new + chr(n - 44)
    return res_new

# print(decode('914cdd698239dda7c6bf454844d6d02a','mobile'))

